                <div id="content" class="span10">
                    <!-- content starts -->
                    <?php
                    if (empty($barang)){
                        echo "tidak ada data";
                    } 
                    else {
                    
                    ?>
                    <h1 align="center"><?php echo $judul?></h1>
                    <div class="row-fluid sortable">
                        <div class="box span12">
                            <div class="box-content">
                                <table class="table table-striped table-bordered bootstrap-datatable datatable">
                                    <thead>
                                        <tr>
                                            <th>Nama Material</th>
                                            <th>Nomor Normalisasi</th>
                                            <th>Satuan</th>
                                            <th>Stok Gudang</th>
                                            <th>Stok Minimal</th>
                                            <th>Posisi Rak</th>
                                        </tr>
                                    </thead>
                                    
                                    <tbody>
                                        <?php
                                    foreach ($barang as $row) {
                                    ?>
                                        <tr>
                                            <td><?=$row['nama']?></td>
                                            <td align="right"><?=$row['kodebarang']?></td>
                                            <td><?=$row['satuan']?></td>
                                            <td align="right"><?=$row['stok']?></td>
                                            <td align="right"><?=$row['min']?></td>
                                            <td><?=$row['rak']?></td>
                                        </tr>
                                        <?php
                                        } 
                                        ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!--/span-->
                    </div>
                    <?php 
                }
                    ?>
                    <!--/row-->
                    <!-- content ends -->
                </div>
                <!--/#content.span10-->